package yiran.stock.command;

import org.bukkit.entity.Player;
import java.util.HashMap;
import java.util.Map;

public class BuyManager {
    private final Map<Player, String> playerSelections = new HashMap<>();

    public void setPlayerSelection(Player player, String symbol) {
        playerSelections.put(player, symbol);
    }

    public String getPlayerSelection(Player player) {
        return playerSelections.get(player);
    }

    public void clearSelection(Player player) {
        playerSelections.remove(player);
    }
}